#!/usr/bin/python3
# -*- coding:UTF-8 -*-
'''Module DocString'''

__author__ = 'Wang Zhe'

from socket import *
from time import ctime

def udp():
    """Function DocString"""
    port = 8081
    s = socket(AF_INET,SOCK_DGRAM)
    s.bind(('',port))
    print("正在等待接入...")

    while True:
        data,addr = s.recvfrom(1024)
        print('Received:',data,'from',addr)

def main():
    '''Func DocString'''
    udp()
    pass

if __name__ == '__main__':
    main()
